GXCountJobPaperTypes
You can use theGXCountJobPaperTypes
function to obtain the total number of paper-type definitions that are accessible to a particular job object.
long GXCountJobPaperTypes (gxJob aJob, Boolean forFormatDevice);
aJob
- A reference to the job object from which to obtain the number of paper-type definitions.
forFormatDevice
- A Boolean value that specifies whether the paper-type objects are associated with the formatting printer (
true
) or with the output printer (false
).- function result
- The number of paper-type objects that are associated with the print job.
DESCRIPTION
TheGXCountJobPaperTypes
function returns the number of paper types associated with either the print job's formatting printer or output printer.Set the
forFormatDevice
parameter totrue
to count only the paper types associated with the formatting printer or tofalse
to count only paper types associated with the output printer.Depending on the format specification of the job object, the total number of paper types returned may include the total number of system paper types, user paper types, printer driver paper types, and printer-configuration-file paper types.
Use the
GXGetJobError
function to retrieve errors for this function.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found, or there was not enough memory to load it.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help